package cn.kgc.spring05.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/21
 * @Description:  前置通知  MethodBeforeAdvice
 */
public class MyMethodBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("------spring aop 前置通知---------");
    }
}
